home *** CD-ROM | disk | FTP | other *** search
- Path: news.primenet.com!Station2
- From: jrpalmer@primenet.com (James R. Palmer)
- Newsgroups: comp.lang.c++
- Subject: Visual C 4.0 CBitmapButton Problem - Please Help
- Date: 17 Jan 1996 22:01:02 -0700
- Organization: Primenet
- Sender: root@primenet.com
- Message-ID: <4dkk6e$2n2@nnrp1.news.primenet.com>
- X-Posted-By: ip094.phx.primenet.com
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- If anyone can help, I sure would appreciate it.
-
- I am new to the MSVC++ programming environment and I am trying to make a
- button on a dialog box display a bitmap. I believe that I have followed the
- directions correctly in the manual in that the button caption is REDBUTTON and
- the bitmaps that were also created in "ResourceView" were named with ids of
- REDBUTTONU, REDBUTTOND, REDBUTTONF, REDBUTTONX. I also tried it with names of
- "RED<L>".
-
- The problem was that the "AutoLoad" function within the CBitmapButton was
- failing. Upon using the debugger, I found that the internal MFC routine was
- correctly looking for "REDBUTTONU", but was unable to find it within the .EXE.
-
- My first guess is that I may need to configure VC++ to include the resources
- into the project in some way (AppWizard did create the start up application).
- Or is there some other obvious problem that I have overlooked?
-